package June03;

import java.awt.*;

public class Test {
    public static void main(String[] args) {
        Teacher te=new Teacher("罗翔2","女",50,20000);
        Employee a=new Teacher("1","0",18,300);//自动类型转换
        Employee e=new Employee();


        a.show();

//        te.setName("罗翔");
//        te.setGender("");

        Student s=new Student("张三","男",18);
        te.show();
        s.show();

        register(te);
        register(s);



    }


    public static void register(Employee employee){
        employee.show();

    }

}
